<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>Dashboard Template for Bootstrap</title>
		<!-- Bootstrap core CSS -->
		<link th:href="@{asserts/css/bootstrap.min.css}" rel="stylesheet">
		<link th:href="@{asserts/css/dashboard.css}" rel="stylesheet">
		<style type="text/css">
			/* Chart.js */
			@-webkit-keyframes chartjs-render-animation {
				from {
					opacity: 0.99
				}
				to {
					opacity: 1
				}
			}
			@keyframes chartjs-render-animation {
				from {
					opacity: 0.99
				}
				to {
					opacity: 1
				}
			}
			.chartjs-render-monitor {
				-webkit-animation: chartjs-render-animation 0.001s;
				animation: chartjs-render-animation 0.001s;
			}
		</style>
	</head>

	<body>

	    <!--顶部   模板引擎， 页面路径 :: id模板名 -->
		<header th:replace="home/public :: #publicTop"></header>

		<div class="container-fluid">
			<div class="row">
				<nav class="col-md-2 d-none d-md-block bg-light sidebar">
					<div class="sidebar-sticky">

						<div th:replace="home/public :: #publicNav(nav='list')"></div>

					</div>
				</nav>

				<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
					<h2>用户列表</h2>
					<div class="table-responsive">
						<table class="table table-striped table-sm">
							<thead>
								<tr>
									<th>主键</th>
									<th>用户名</th>
									<th>真名</th>
									<th>性别</th>
									<th>职称</th>
									<th>生日</th>
								</tr>
							</thead>
							<tbody>
								<tr th:each="user:${userList}">
									<td>[[${user.id}]]</td>
									<td>[[${user.username}]]</td>
									<td>[[${user.realName}]]</td>
									<td>[[${user.realName=="2"?"男":"女"}]]</td>
									<td>[[${user.userType==1? '管理员' : (user.userType==2? '经理' : '普通用户')}]]</td>
									<td th:text="${#dates.format(user.birthday,'yyyy-MM-dd HH:mm:ss')}"></td>
									<!--  如果有实体 user.对象.get属性值 -->
								</tr>
							</tbody>
						</table>
					</div>
				</main>
			</div>
		</div>


		<script type="text/javascript" th:src="@{asserts/js/jquery-3.2.1.slim.min.js}"></script>
		<script type="text/javascript" th:src="@{asserts/js/popper.min.js}"></script>
		<script type="text/javascript" th:src="@{asserts/js/bootstrap.min.js}"></script>

		<!-- Icons -->
		<script type="text/javascript" th:src="@{asserts/js/feather.min.js}"></script>
		<script>
			feather.replace()
		</script>



	</body>

</html>